<html>
<pre>
	
</pre>
<body>
	<h1>Parscit Examples</h1>

	<p id="citation"> </p>
	<p id="result1"> </p>
	<p id="result2"> </p>
	<p id="result3"> </p>

	<script type="text/javascript" src="jquery-1.6.2-min.js"></script>
	<script type="text/javascript" src="http://wing.comp.nus.edu.sg/~huydhn/sciverse/cors.js"></script>
	<script type="text/javascript" src="http://wing.comp.nus.edu.sg/~huydhn/sciverse/parscit.js"></script>
	<script type="text/javascript">
		var citation = "Kredo et al., Medium access control in wireless sensor networks, Computer Networks 51 (4) (2007), pp. 961–994.";
		citation = "C. Cano, B. Bellalta, A. Sfairopoulou and J. Barceló, A low power listening MAC with scheduled wake up after transmissions for WSNs, IEEE Communications Letters 13 (4) (2009), pp. 221–223.";

		// Call parscit
		parscit (citation, process);
		parscit (citation, process2);
		parscit (citation, process3);

		function process (data) {
			document.getElementById("citation").innerHTML = citation;

			var str = new String();
			str += "<table border='1'>";
				str += "<tr>";
					str += "<td>";
						str += data[0].authors.toString();
					str += "</td>";
					str += "<td>";
						str += data[0].title;
					str += "</td>";
				str += "</tr>";
			str += "</table>";

			document.getElementById("result1").innerHTML = str;
			
		}

		function process2 (data) {
			document.getElementById("citation").innerHTML = citation;

			var str = new String();
			str += "<table border='1'>";
				str += "<tr>";
					str += "<td>";
						str += data[0].authors.toString();
					str += "</td>";
					str += "<td>";
						str += data[0].title;
					str += "</td>";
				str += "</tr>";
			str += "</table>";

			document.getElementById("result2").innerHTML = str;
			
		}

		function process3 (data) {
			document.getElementById("citation").innerHTML = citation;

			var str = new String();
			str += "<table border='1'>";
				str += "<tr>";
					str += "<td>";
						str += data[0].authors.toString();
					str += "</td>";
					str += "<td>";
						str += data[0].title;
					str += "</td>";
				str += "</tr>";
			str += "</table>";

			document.getElementById("result3").innerHTML = str;
			
		}
	</script>
</body>
</html>
